package com.ruoyi.project.purchase.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class Factoriess extends BaseEntity {
    private Integer facId;
    private String facName;
    private String facCode;
    private String facContact;
    private String facTel;
    private String facKey;
    private String facAddress;
    private Integer status;

    public Factoriess() {
    }

    public Factoriess(Integer facId, String facName, String facCode, String facContact, String facTel, String facKey, String facAddress, Integer status) {
        this.facId = facId;
        this.facName = facName;
        this.facCode = facCode;
        this.facContact = facContact;
        this.facTel = facTel;
        this.facKey = facKey;
        this.facAddress = facAddress;
        this.status = status;
    }

    public Integer getFacId() {
        return facId;
    }

    public void setFacId(Integer facId) {
        this.facId = facId;
    }

    public String getFacName() {
        return facName;
    }

    public void setFacName(String facName) {
        this.facName = facName;
    }

    public String getFacCode() {
        return facCode;
    }

    public void setFacCode(String facCode) {
        this.facCode = facCode;
    }

    public String getFacContact() {
        return facContact;
    }

    public void setFacContact(String facContact) {
        this.facContact = facContact;
    }

    public String getFacTel() {
        return facTel;
    }

    public void setFacTel(String facTel) {
        this.facTel = facTel;
    }

    public String getFacKey() {
        return facKey;
    }

    public void setFacKey(String facKey) {
        this.facKey = facKey;
    }

    public String getFacAddress() {
        return facAddress;
    }

    public void setFacAddress(String facAddress) {
        this.facAddress = facAddress;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Factoriess that = (Factoriess) o;
        return Objects.equals(facId, that.facId) &&
                Objects.equals(facName, that.facName) &&
                Objects.equals(facCode, that.facCode) &&
                Objects.equals(facContact, that.facContact) &&
                Objects.equals(facTel, that.facTel) &&
                Objects.equals(facKey, that.facKey) &&
                Objects.equals(facAddress, that.facAddress) &&
                Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(facId, facName, facCode, facContact, facTel, facKey, facAddress, status);
    }

    @Override
    public String toString() {
        return "Factoriess{" +
                "facId=" + facId +
                ", facName='" + facName + '\'' +
                ", facCode='" + facCode + '\'' +
                ", facContact='" + facContact + '\'' +
                ", facTel='" + facTel + '\'' +
                ", facKey='" + facKey + '\'' +
                ", facAddress='" + facAddress + '\'' +
                ", status=" + status +
                '}';
    }
}
